<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Super(name){
            this.color=["你还","加减"];
            this.name=name;
        }
        function Sub(){
            Super.call(this,"嘻嘻");
            this.age=45;
        }
        var peo=new Sub();
        peo.color.push("red");
        console.log(peo.color);
        var peo1=new Sub();
        console.log(peo1.color);

        var peo22=new Super("哈哈");
        console.log(peo22.name);
        var peo2=new Sub();
        console.log(peo2.name);
    </script>
</body>
</html>